package cn.appsys.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.appsys.biz.InfoBiz;
import cn.appsys.dao.InfoDao;
import cn.appsys.entity.AppInfo;

@Service("infoBiz")
public class InfoBizImpl implements InfoBiz{

	@Autowired
	private InfoDao infoDao;
	
	public int insertApp(AppInfo appInfo) {
	
		return infoDao.insertApp(appInfo);
	}

	public void delete(int id) {
		infoDao.delete(id);
		
	}

	public void updateStatus(int id, int status) {
		infoDao.updateStatus(id, status);
		
	}

	public AppInfo getByIdAppInfo(int id) {
		// TODO Auto-generated method stub
		return infoDao.getByIdAppInfo(id);
	}

	public int updateAppInfo(AppInfo appInfo) {
		// TODO Auto-generated method stub
		return infoDao.updateAppInfo(appInfo);
	}

	public int updateVersionId(int id, int versionId) {
		// TODO Auto-generated method stub
		return infoDao.updateVersionId(id, versionId);
	}

}
